﻿using System;
using System.Collections.Generic;
using System.Text;

namespace MazeRaider
{
    class AlgorithmContainer
    {
        private IAlgorithm currentAlgorithm;

        public void SelectAlgorithm(AlgorithmEnum algorithmEnum, Robot[] robots)
        {
            currentAlgorithm = AlgorithmFactory.CreateAlgorithm(algorithmEnum, robots);
        }

        public void Start()
        {
            currentAlgorithm.Initialize();
            currentAlgorithm.Start();
        }

        public void Stop()
        {
            currentAlgorithm.Stop();
        }
    }
}
